<?
header("Expires: Mon, 26 Jul 2999 05:00:00 GMT" ); 
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); 
header("Cache-Control: no-cache, must-revalidate" ); 
header("Pragma: no-cache" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if (isset($ptitle)) echo $ptitle." | " ?>FlexSys &copy;</title>
<link rel="stylesheet" href="<?php echo base_url()?>css/cupertino/theme.css" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/validationEngine.jquery.css" type="text/css"/>
<link type="text/css" href="<?php echo base_url()?>css/ui-lightness/jquery-ui-1.8.22.custom.css" rel="stylesheet" />
<link rel="stylesheet" href="<?php echo base_url()?>css/flexigrid/flexigrid.css" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url()?>js/fullcalendar/fullcalendar.css" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url()?>js/fullcalendar/fullcalendar.print.css" media="print" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url()?>css/style.css" type="text/css" />

<script type="text/javascript">
	var root = '<?php echo base_url()?>';
	var module = '<?php echo isset($module) ? $module : ""; ?>';
</script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery.upload.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery.watermark.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery.clock.js"></script>
<!--<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery.balloon.js"></script>-->
<script type="text/javascript" src="<?php echo base_url()?>js/fullcalendar/fullcalendar.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/flexigrid/flexigrid.js"></script>
</head>
<body>
<div id="loader"></div>
<div id="loader-small"></div>
<div id="content">
	<div id="header" class="curve">
		<div id="header-left">
			<div id="logo">
				<a href="<?php echo base_url(); ?>"><img src="<?php echo base_url() ?>images/meinhardtlogo.jpg" /></a>
			</div>
		</div>
		<!--header-left-->
		<div id="header-right">
			<?php if($this->tank_auth->get_user_id()){ ?>
			Hi, <strong><?php echo $username; ?></strong>! You are logged in now.<span>|</span>
			<?php echo anchor(base_url().'employees/profile/'.$this->tank_auth->get_user_id().'.html', 'My Profile'); ?><span>|</span><?php echo anchor('#', 'Change Password'); ?><span>|</span><?php echo anchor('/auth/logout/', 'Logout'); ?>
			<?php }else{ ?>
			Hi, <strong>Guest</strong>! <span>|</span>
			<?php echo anchor(base_url().'auth/login.html', 'Login'); ?>
			<?php } ?>
		</div>
		<!--header-left-->
		<div class="clear"></div>		
	</div>
	<!--header-->
	
	<div id="nav" class="curve">
		<div id="nav-main">
			<ul><div>
			
				<li <?php if(isset($active_header)&&$active_header=='home') echo 'class="active"'; ?>>
					<a href="<?php echo base_url(); ?>">Home</a>
					<ul>
						<li><a href="<?php echo base_url(); ?>">About Us</a></li>
						<li><a href="<?php echo base_url(); ?>company-profile.html">Company Profile</a></li>
						<li><a href="<?php echo base_url(); ?>projects.html">Projects</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				
				<li <?php if(isset($active_header)&&$active_header=='timekeeping') echo 'class="active"'; ?>>
					<a href="<?php echo base_url(); ?>calendar.html">Time Keeping</a>
					<ul>
						<li><a href="<?php echo base_url(); ?>calendar.html">Calendar</a></li>
						<li><a href="#">Punch History</a></li>
						<li><a href="#">Punch Alteration History</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				
				<li>
					<a href="#">Overtime</a>
					<ul>
						<li><a href="#">Overtime 1</a></li>
						<li><a href="#">Overtime 2</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				
				<li>
					<a href="#">Leaves</a>
					<ul>
						<li><a href="#">Leaves 1</a></li>
						<li><a href="#">Leaves 2</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				
				
				<li>
					<a href="#">Payslip</a>
					<ul>
						<li><a href="#">Payslip 1</a></li>
						<li><a href="#">Payslip 2</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				<li <?php if(isset($active_header)&&$active_header=='admin') echo 'class="active"'; ?>>
					<a href="<?php echo base_url(); ?>admin/employee-settings.html">Admin</a>
					<ul>
						<li><a href="<?php echo base_url(); ?>admin/employee-settings.html">Employee Settings</a></li>
						<li><a href="<?php echo base_url(); ?>admin/company-settings.html">Company Settings</a></li>
						<li><a href="<?php echo base_url(); ?>announcements/manage.html">Announcements</a></li>
						<div class="clear"></div>
					</ul>
				</li>
				
				
			</ul>
		</div>
		<!--nav-main-->
	</div>
	<!--nav-->
